namespace TS2015.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;
    using System.Web.Script.Serialization;

    [Table("TbDiemTotNghiep")]
    public partial class TbDiemTotNghiep
    {
        [Key]
        [Column(Order = 0)]
        [StringLength(10)]
        public string MaTS { get; set; }

        [Key]
        [Column(Order = 1)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int MaMon { get; set; }

        [Range(0, 10)]
        public double? Diem { get; set; }
        
        [ScriptIgnore]
        public  TbMonTotNghiep TbMonTotNghiep { get; set; }

        [ScriptIgnore]
        public TbThiSinh TbThiSinh { get; set; }
    }
}
